<?php

/**
 * Description of BaseService
 *
 * @author gun
 */

class Admin_Model_BaseService {
    protected $daoClass;
    protected $dao;
    
    protected function setDao($class) {
        $dao = new $class();
        
        $this->dao = $dao;
    }
    
    protected function getDao() {
        if (NULL == $this->dao) {
            $this->setDao($this->daoClass);
        }
        
        return $this->dao;
    }
}
